<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>蓝桥旅游网</title>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/common.css">
    <link rel="stylesheet" type="text/css" href="css/index.css">
	
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-3.3.1.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
    <!--导入布局js，共享header和footer-->
    <script type="text/javascript" src="js/include.js"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
     <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>-->
<!--      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>-->
<!--    <![endif]&ndash;&gt;-->
    <script>
       $(function () {
            $.post("route/indexRoute",{},function (data) {
                var a1 = $("#a1");
                var a1l=4;
                var a1lis="";
                for (let i = 0; i <a1l; i++) {
                    var routee = data.list[i];
                    var li='<div class="col-md-3">\n' +
                        '                                <a href="route_detail.html?rid='+routee.rid+'">\n' +
                        '                                    <img src="'+routee.rimage+'" alt="">\n' +
                        '                                    <div class="has_border">\n' +
                        '                                        <h3>'+routee.rname+'</h3>\n' +
                        '                                        <div class="price">网付价<em>￥</em><strong>'+routee.price+'</strong><em>起</em></div>\n' +
                        '                                    </div>\n' +
                        '                                </a>\n' +
                        '                            </div>';
                    a1lis+=li;
                }
                a1.html(a1lis)
                var a2 = $("#a2");
                var a2l=8;
                var a2lis="";
                for (let i = a1l; i <a2l; i++) {
                    var routee = data.list[i];
                    var li='<div class="col-md-3">\n' +
                        '                                <a href="route_detail.html?rid='+routee.rid+'">\n' +
                        '                                    <img src="'+routee.rimage+'" alt="">\n' +
                        '                                    <div class="has_border">\n' +
                        '                                        <h3>'+routee.rname+'</h3>\n' +
                        '                                        <div class="price">网付价<em>￥</em><strong>'+routee.price+'</strong><em>起</em></div>\n' +
                        '                                    </div>\n' +
                        '                                </a>\n' +
                        '                            </div>';
                    a2lis+=li;
                }
                a2.html(a2lis)
                var a3 = $("#a3");
                var a3l=12;
                var a3lis="";
                for (let i = a2l; i <a3l; i++) {
                    var routee = data.list[i];
                    var li='<div class="col-md-3">\n' +
                        '                                <a href="route_detail.html?rid='+routee.rid+'">\n' +
                        '                                    <img src="'+routee.rimage+'" alt="">\n' +
                        '                                    <div class="has_border">\n' +
                        '                                        <h3>'+routee.rname+'</h3>\n' +
                        '                                        <div class="price">网付价<em>￥</em><strong>'+routee.price+'</strong><em>起</em></div>\n' +
                        '                                    </div>\n' +
                        '                                </a>\n' +
                        '                            </div>';
                    a3lis+=li;
                }
                a3.html(a3lis)
                var a4 = $("#a4");
                var a4l=18;
                var a4lis="";
                for (let i = a3l; i <a4l; i++) {
                    var routee = data.list[i];
                    var li='<div class="col-md-4">\n' +
                        '                                <a href="route_detail.html?rid='+routee.rid+'">\n' +
                        '                                    <img src="'+routee.rimage+'" alt="">\n' +
                        '                                    <div class="has_border">\n' +
                        '                                        <h3>'+routee.rname+'</h3>\n' +
                        '                                        <div class="price">网付价<em>￥</em><strong>'+routee.price+'</strong><em>起</em></div>\n' +
                        '                                    </div>\n' +
                        '                                </a>\n' +
                        '                            </div>';
                    a4lis+=li;
                }
                a4.html(a4lis)
                var a5 = $("#a5");
                var a5l=24;
                var a5lis="";
                for (let i = a4l; i <a5l; i++) {
                    var routee = data.list[i];
                    var li='<div class="col-md-4">\n' +
                        '                                <a href="route_detail.html?rid='+routee.rid+'">\n' +
                        '                                    <img src="'+routee.rimage+'" alt="">\n' +
                        '                                    <div class="has_border">\n' +
                        '                                        <h3>'+routee.rname+'</h3>\n' +
                        '                                        <div class="price">网付价<em>￥</em><strong>'+routee.price+'</strong><em>起</em></div>\n' +
                        '                                    </div>\n' +
                        '                                </a>\n' +
                        '                            </div>';
                    a5lis+=li;
                }
                a5.html(a5lis)
            })
       })
    </script>
</head>
<body>

<script type="text/javascript" src="./js/EffectItem.js"></script>
<script type="text/javascript" src="./js/Effect.js"></script>
<script type="text/javascript">
    new Effect({
        //特效图片，多张图片时传入数组，单个图片时传入字符串
        effectUrl : ["./images/xue.png","./images/xin.png","./images/a1.png","./images/a2.png","./images/a3.png","./images/a4.png"],
        //特效旋转，1/true为旋转，0/false为不旋转
        rotate : 1,
        //特效方向，left/right/up/down
        direction : "up"
    });
</script>

	<!--引入头部-->
    <div id="header"></div>
    <!-- banner start-->
    <section id="banner">
        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="2000">
            <!-- Indicators -->
            <ol class="carousel-indicators">
                <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                <li data-target="#carousel-example-generic" data-slide-to="2"></li>
            </ol>
            <!-- Wrapper for slides -->
            <div class="carousel-inner" role="listbox">
                <div class="item active" style="text-align: center">
                    <img style="height: 399px;width: 1500px;display: inline-block" src="http://niuzi12138.oss-cn-chengdu.aliyuncs.com/t.jpg" alt="">
                </div>
                <div class="item" style="text-align: center">
                    <img style="height: 399px;width: 1500px;display: inline-block" src="http://niuzi12138.oss-cn-chengdu.aliyuncs.com/t3.jpg" alt="">
                </div>
                <div class="item" style="text-align: center">
                    <img style="height: 399px;width: 1500px;display: inline-block" src="http://niuzi12138.oss-cn-chengdu.aliyuncs.com/t5.jpg" alt="">
                </div>
            </div>
            <!-- Controls -->
         <h1 style="position: relative"></h1>
            <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
			    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
			    <span class="sr-only">Previous</span>
			  </a>
            <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
			    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
			    <span class="sr-only">Next</span>
			  </a>
        </div>
    </section>
    <!-- banner end-->
    <!-- 旅游 start-->
    <section id="content">
         <!-- 蓝桥精选start-->
        <section class="hemai_jx">
            <div class="jx_top">
                <div class="jx_tit">
                    <img src="http://niuzi12138.oss-cn-chengdu.aliyuncs.com/icon5.jpg" alt="">
                    <span>蓝桥精选</span>
                </div>
                <!-- Nav tabs -->
                <ul class="jx_tabs" role="tablist">
                    <li role="presentation" class="active">
                        <span>
                            <a href="#popularity" aria-controls="popularity" role="tab" data-toggle="tab">人气旅游</a>
                        </span>

                    </li>
                    <li role="presentation">
                        <span>
                            <a href="#newest" aria-controls="newest" role="tab" data-toggle="tab">最新旅游</a>
                        </span>

                    </li>
                    <li role="presentation">
                        <span>
                            <a href="#theme" aria-controls="theme" role="tab" data-toggle="tab">主题旅游</a>
                        </span>

                    </li>
                </ul>
            </div>
            <div class="jx_content">
                <!-- Tab panes -->
                <div class="tab-content">
                    <div role="tabpanel" class="tab-pane active" id="popularity">
                        <div class="row" id="a1">

                        </div>
                    </div>
                    <div role="tabpanel" class="tab-pane" id="newest">
                        <div class="row" id="a2">

                        </div>
                    </div>
                    <div role="tabpanel" class="tab-pane" id="theme">
                        <div class="row" id="a3">

                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 蓝桥精选end-->
        <!-- 国内游 start-->
        <section class="hemai_jx">
            <div class="jx_top">
                <div class="jx_tit">
                    <img src="http://niuzi12138.oss-cn-chengdu.aliyuncs.com/icon6.jpg" alt="">
                    <span>国内游</span>
                </div>
            </div>
            <div class="heima_gn">
                <div class="guonei_l">
                    <img src="http://niuzi12138.oss-cn-chengdu.aliyuncs.com/one.jpg" alt="">
                </div>
                <div class="guone_r">
                    <div class="row" id="a4">

                    </div>
                </div>
            </div>
        </section>
        <!-- 国内游 end-->
        <!-- 境外游 start-->
        <section class="hemai_jx">
            <div class="jx_top">
                <div class="jx_tit">
                    <img src="http://niuzi12138.oss-cn-chengdu.aliyuncs.com/icon7.jpg" alt="">
                    <span>境外游</span>
                </div>
            </div>
            <div class="heima_gn">
                <div class="guonei_l">
                    <img src="http://niuzi12138.oss-cn-chengdu.aliyuncs.com/two.jpg" alt="">
                </div>
                <div class="guone_r">
                    <div class="row" id="a5">

                    </div>
                </div>
            </div>
        </section>
        <!-- 境外游 end-->
    </section>
    <!-- 旅游 end-->
   <!--导入底部-->
    <div id="footer"></div>

</body>


</html>